/*******************************************************************************
* Filename  : HdlcInterface.c
*
* Function  : Provide the API reference for this module.
*
* Created   : 2011-12-31 10:35:00
*           : Mr. Xinghai Lin
* Modified  : 2011-12-31
*           : Mr. Xinghai Lin
*
*    Copyright (c) 2002-2011 by FuJian Centerm Information Co, Ltd.
*                             All Rights Reserved.
*
*******************************************************************************/


#ifndef _HDLC_INTERFACE_H_
#define _HDLC_INTERFACE_H_





#include "./include/modem.h"


typedef struct
{
    MODEM_CONN_MODE ConnMode;
    
    
}HDLCTransInitTypeDef;


 /*
 *******************************************************************************
 *
 * api routine
 *
 *******************************************************************************
 */

INT  HDLCTransInit(VOID);

INT  HDLCTransConnect(CONST CHAR *pCallNum, UINT uTimeOutMs);

INT  HDLCTransConnectNoBlock(CONST CHAR *pCallNum);

INT  HDLCGetConnectState(VOID);

INT  HDLCTransDisConnect(VOID);

INT  HDLCDataSend(CONST VOID *pData, INT iLen);

INT  HDLCDataRecv(VOID *pData, INT iLen);

VOID  HDLCTransEnd(VOID);

#define HDLCProcess()   _UsartDPCProc(0,0,0)


#endif/*_HDLC_INTERFACE_H_*/
